home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -serious- / misc / calculator / calculator.h < prev    next >
C/C++ Source or Header  |  1999-07-12  |  1KB  |  46 lines

  1. /* Calculator.h */
  2.  
  3. /* File contains functional defintions for all functions in the
  4. Gadgets.c & Window.c files */
  5.  
  6. // These are the gadget indexes
  7. #define MYGAD_DISPLAY      (0)
  8. #define MYGAD_9            (1)
  9. #define MYGAD_8            (2)
  10. #define MYGAD_7            (3)
  11. #define MYGAD_CLEAR        (4)
  12. #define MYGAD_6            (5)
  13. #define MYGAD_5            (6)
  14. #define MYGAD_4            (7)
  15. #define MYGAD_MULTIPLY     (8)
  16. #define MYGAD_DIVIDE       (9)
  17. #define MYGAD_3            (10)
  18. #define MYGAD_2            (11)
  19. #define MYGAD_1            (12)
  20. #define MYGAD_ADD          (13)
  21. #define MYGAD_SUBTRACT     (14)
  22. #define MYGAD_POINT        (15)
  23. #define MYGAD_0            (16)
  24. #define MYGAD_CHANGE_SIGN  (17)
  25. #define MYGAD_EQUALS       (18)
  26.  
  27. // This is the total number of gadgets
  28. #define NUM_GADS           (19)
  29. // This is the number of gadget special pointers
  30. #define PTRS               (1)
  31. // This is the total numbers to be displayed at once
  32. #define ENTRY_LENGTH       (10)
  33.  
  34. struct TextAttr Topaz80 = { "topaz.font", 8, 0, 0, };
  35.  
  36. struct Library *IntuitionBase;
  37. struct Library *GfxBase;
  38. struct Library *GadToolsBase;
  39.  
  40. struct Gadget *createAllGadgets(struct Gadget **, void *,
  41.     UWORD, struct Gadget *[], struct StringInfo *[]);
  42.  
  43. BOOL handleGadgetEvent(struct Screen *, struct Window *, struct Gadget *,
  44.     UWORD, struct Gadget *[], int&, int&);
  45.  
  46.